#ifndef PLAYSCENE_H
#define PLAYSCENE_H

#include <QMainWindow>
#include <QMessageBox>
#include <QPropertyAnimation>
#include <QPixmap>
#include <QLabel>
#include <QString>
#include <QFont>
#include <QTimer>
#include "mymainwindow.h"
#include "mybutton.h"
#include "coinbutton.h"
#include "dataconfig.h"
#include "soundutil.h"

class PlayScene : public MyMainWindow
{
    Q_OBJECT
public:
    explicit PlayScene(int lv, QWidget *parent = nullptr);
    /**
     * @brief filp 翻转4个方向的金币
     * @param x
     * @param y
     */
    void filp(int x, int y);

    /**
     * @brief judgeWin 判断是否通关
     */
    void judgeWin();

signals:
    void backButtonSig();
public slots:
protected:
    void paintEvent(QPaintEvent *event);
private:
    bool hasWin;
    MyButton *backButton;
    QLabel *lvLable;
    dataConfig * data;
    QVector<QVector<CoinButton*> > coinBtn;

};

#endif // PLAYSCENE_H
